package com.bhxx.fund.entry;

import lombok.Data;

import java.util.Date;

@Data
public class FundDTO {

    /**
     * 基金代码
     */
    private String fundcode;
    /**
     * 基金名称
     */
    private String name;
    /**
     * 净值日期
     */
    private Date jzrq;
    /**
     * 当日净值
     */
    private String dwjz;
    /**
     * 估算净值
     */
    private String gsz;
    /**
     * 估算涨跌百分比 即-0.42%
     */
    private String gszzl;
    /**
     * 估值时间
     */
    private Date gztime;

    private String fildMsg;

    public String getFildMsg() {
        return fildMsg;
    }

    public void setFildMsg(String fildMsg) {
        this.fildMsg = fildMsg;
    }

    public void setFundcode(String fundcode) {
        this.fundcode = fundcode;
    }

    public String getFundcode() {
        return fundcode;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setJzrq(Date jzrq) {
        this.jzrq = jzrq;
    }

    public Date getJzrq() {
        return jzrq;
    }

    public void setDwjz(String dwjz) {
        this.dwjz = dwjz;
    }

    public String getDwjz() {
        return dwjz;
    }

    public void setGsz(String gsz) {
        this.gsz = gsz;
    }

    public String getGsz() {
        return gsz;
    }

    public void setGszzl(String gszzl) {
        this.gszzl = gszzl;
    }

    public String getGszzl() {
        return gszzl;
    }

    public void setGztime(Date gztime) {
        this.gztime = gztime;
    }

    public Date getGztime() {
        return gztime;
    }

    @Override
    public String toString() {
        return "此基金：" + '\n' +
                "{" +
                "      基金代码：" + fundcode + '\r' +
                "      基金名称：" + name + '\r' +
                "      净值日期：" + jzrq + '\n' +
                "      当日净值：" + dwjz + '\n' +
                "      估算净值：" + gsz + '\n' +
                "估算涨跌百分比：" + gszzl + '\n' +
                "      估值时间：" + gztime + '\n' +
                '}' + '\n' + '\n' + '\n';
    }
}
